#!/bin/sh

. /etc/init.d/functions

case "${1}" in
        start)
		if [ -d /media/bootdisk -a ! -d /media/bootdisk/cams ]; then
		    mkdir -p /media/bootdisk/cams/default && rm -rf /var/www/htdocs/cams && ln -sf /media/bootdisk/cams /var/www/htdocs/
		fi
                ;;

        stop)
                ;;

        restart)
                ;;

        *)
                echo "Usage: ${0} {start|stop|restart|status}"
                exit 1
                ;;
esac
